//
//  Course.h
//  Gradekeeper0.2
//
//  Created by Qian Tim on 09-11-12.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CourseWork.h"


@interface Courses : NSObject {
	NSString* catagory;
	int number;
	float grade;
	int credit;
	NSMutableArray *weightOfWorks;
	NSMutableArray *workTypes;
	NSMutableArray *CourseWorks;
}

//-(Course*) initWithCatagory: (NSString*) newCatagory number: (int) newNumber andCredit: (int) newCredit;
-(void) setCatagory: (NSString*) newCatagory;
-(void) setNumber: (int) newNumber;
-(void) setCredit: (int) newCredit;
-(BOOL) addWork: (CourseWork*) work;
-(BOOL) removeWork: (NSString*) name;
-(CourseWork*) getWork: (NSString*) name;
-(NSString*) getCatagory;
-(float) getGrade;
-(int) getCredit;
-(NSMutableArray*) getWeights;
-(float) getWeight: (int) index;
-(BOOL) setWeights: (NSMutableArray*) weights;
-(BOOL) setWeight: (int) index: (float) value;
-(void) setGrade: (float) newGrade;
-(void) calcGrade;
-(void) dealloc;

@end
